package com.example.demo.web.manage.convert;

import com.example.demo.web.manage.dto.DeptDto;
import com.example.demo.web.manage.model.DeptEntity;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * @author airhead
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface DeptConvert {
  DeptConvert INSTANCE = Mappers.getMapper(DeptConvert.class);

  DeptDto convert(DeptEntity bean);

  DeptEntity convert(DeptDto bean);
}
